package main

import (
	"fmt"
	"math"
)

func main()  {
	for i := 1; i < 1000; i++{
		if isNar(i){
			fmt.Println(i)
		}

	}
}
func isNar(num int) bool {
	sum := 0
	for n := num; n>0; n /= 10{
		a := n % 10
		sum += int(math.Pow(float64(a),3))
	}
	if sum == num{
		return true
	}else{
		return false
	}
}
